<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>个人中心</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>

 

<s:iterator value="pageBean.list"> 


<div id="title"><a href="<s:url action="MessageShow" >
    <s:param name="messageId"><s:property value="messageId" /></s:param>
   </s:url>"><s:property value="title" /></a> <div id="timesize"><s:property value="submitTime" /></div></div>

<hr/>

</s:iterator>
 共<s:property value="pageBean.allRow"/> 条记录
        共<s:property value="pageBean.totalPage"/> 页
        当前第<s:property value="pageBean.currentPage"/>页<br/>
        
        <s:if test="%{pageBean.currentPage == 1}">
            第一页 上一页
        </s:if>
        <s:else>
         <a href="<s:url action="UserMessage"><s:param name="accountName">%{#session.user.accountName}</s:param><s:param name="page">1</s:param></s:url>"> 第一页</a>
          <a href="<s:url action="UserMessage"><s:param name="accountName">%{#session.user.accountName}</s:param><s:param name="page"><s:property value="%{pageBean.currentPage-1}"/></s:param></s:url>"> 上一页</a>
          
        </s:else>
        <s:if test="%{pageBean.currentPage != pageBean.totalPage}">
                 <a href="<s:url action="UserMessage"><s:param name="accountName">%{#session.user.accountName}</s:param><s:param name="page"><s:property value="%{pageBean.currentPage+1}"/></s:param></s:url>"> 下一页</a>
                         <a href="<s:url action="UserMessage"><s:param name="accountName">%{#session.user.accountName}</s:param><s:param name="page"><s:property value="pageBean.totalPage"/></s:param></s:url>">最后一页</a>
       
        </s:if>
        <s:else>
            下一页 最后一页
        </s:else>



  </body>
</html>
